//**************************************************************************
// Copyright 2008 Peter Project (http://www.codeplex.com/peter)
//
// License : GNU General Public License (GPL)
// For full text of the license please goto:
// http://www.gnu.org/licenses/gpl-2.0.html
//
// This code is provided on an AS IS basis, with no WARRANTIES,
// CONDITIONS or GUARANTEES of any kind.
//
//		File: PeterInterfaces.cs
//		Purpose: This file holds all the Interfaces for the Peter
//				 Plugin Architecture.
//
//**************************************************************************

using System.Windows.Forms;

namespace Peter
{
    public partial class fHtmlToolTip : Form
    {
        public fHtmlToolTip()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Gets or Sets the WebBrowser Control...
        /// </summary>
        public WebBrowser WebBrowser
        {
            get { return this.WebMain; }
            set { this.WebMain = value; }
        }

        protected override bool ShowWithoutActivation
        {
            get
            {
                return true;// base.ShowWithoutActivation;
            }
        }

        /// <summary>
        /// Checks if the mouse is inside the window
        /// </summary>
        /// <returns>True if the mouse is inside, False if its not</returns>
        public bool CanClose ()
        {
            return this.DesktopBounds.Contains(MousePosition);
        }
    }
}